package com.huadao.cart_ccs.experiment.confirmBeforeCulture.rawMaterial;

import android.view.View;

import com.huadao.cart_ccs.R;
import com.huadao.cart_ccs.base.BaseDialogFragment;
import com.huadao.cart_ccs.base.BasePresenter;

public class RawMaterialDF extends BaseDialogFragment {

    private RawMaterialFrag.ConfirmRawMaterial confirmRawMaterial;
    @Override
    protected BasePresenter getPresenter() {
        return null;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.dialogfrag_rawmaterial;
    }

    @Override
    protected void onInit() {
        setSetIconsVisibility(View.INVISIBLE);
        RawMaterialFrag rawMaterialFrag=new RawMaterialFrag();
        rawMaterialFrag.setConfirmRawMaterial(confirmRawMaterial);
        getChildFragmentManager().beginTransaction().replace(R.id.frameLayout,rawMaterialFrag).commit();
    }

    public void setConfirmRawMaterial(RawMaterialFrag.ConfirmRawMaterial confirmRawMaterial) {
        this.confirmRawMaterial = confirmRawMaterial;
    }
}
